package com.senlan.water.dto.project;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 会议记录
 * @TableName meeting_records
 */
@Data
@EqualsAndHashCode
public class MeetingRecordsEditDTO implements Serializable {

    /**
     * id
     */
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @Size(max = 50, message = "标题长度不能超过50")
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空")
    @Size(max = 5000, message = "内容长度不能超过5000")
    private String content;

    private static final long serialVersionUID = 1L;

}